Part Number Hot Search : 
PA43A GBLA01 2SD882 9119T SSM2160R 2SK29 MB90F347 AAT1142
Product Description
Full Text Search
 

To Download PT7A6632 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Features
* Provides up to 32 full-duplex HDLC/SDLC channels * Compatible with 1.544 Mb/s T1 and 2.048Mb/s CEPT PCM-30 carrier format * Provides on-board buffer memory management * Supports standard hyperchannel configuration and fully programmable hyperchannel configuration * Provides on-board CRC-16, automatic flag and zero insertion and deletion functions in HDLC format * Provides programmable tri-state outputs to T1/E1 serial interface and FILL/MASK, thus enabling up to 8 devices connecting to a TDM bus * Provides data rate adaptation functions * Compatible with HDLC, SNA SDLC, X.25, X.75, LAPB, and LAPD protocols * Support non-HDLC signaling channels * Single +5V power supply * Package: 68-pin PLCC
Figure 1. Application Diagram of PT7A6632
Applications
* Primary rate interfaces * Basic-rate D-channel controller * Multi-channel HDLC interfaces
Introduction
The PT7A6632 HDLC controller operates at layer 2 (data link protocol level) of the Open Systems Interconnection (OSI) reference model. It supports HDLC and ISDN implementations. The PT7A6632 processes data transmitting and receiving on a T1 or E1 communication link. It connects between the T1/E1 serial bus and an external memory shared with CPU(s), multiplexing / demultiplexing up to 32 fully-duplex high-speed data channels. It provides additional functions that support X.30 and X.31 rate adaptation and fully flexible hyperchannels.
D0-D7 CPU External Shared Memory A0-A15 HDLC PT7A6632 E1/T1 Trunk Interface T1/CEPT PCM-30 Line
PT019(05/02)
1
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Contents
Features ....................................................................................................................................................... 1 Applications ................................................................................................................................................ 1 Introduction ................................................................................................................................................. 1 Block Diagram ............................................................................................................................................ 4 Pin Information ........................................................................................................................................... 4 Pin Assignment .................................................................................................................................. 4 Pin Configuration .............................................................................................................................. 5 Pin Description .................................................................................................................................. 6 Functional Description ................................................................................................................................ 9 General Description ........................................................................................................................... 9 Transmit Bit-Level Processor ........................................................................................................... 10 Timing .................................................................................................................................... 10 Data Rate Adaptation ............................................................................................................. 10 Hyperchannel ......................................................................................................................... 13 Tri-State Serial Data Output TSER ........................................................................................ 14 Channel Operation Modes...................................................................................................... 14 Data Transmission Order ........................................................................................................ 14 Receive Bit-Level Processor ............................................................................................................ 15 Timing .................................................................................................................................... 15 Data Rate Adaptation ............................................................................................................. 15 HDLC Frame Validity ............................................................................................................ 15 Hyperchannel ......................................................................................................................... 15 Channel Operation Modes...................................................................................................... 15 Data Reception Order............................................................................................................. 18 Memory Manager ............................................................................................................................ 18 State / Control Machine ................................................................................................................... 19
PT019(05/02)
2
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
External Memory Organization and Definition ......................................................................................... 20 General Structure ............................................................................................................................. 20 Activation Memory .......................................................................................................................... 21 Channel Activation Byte ........................................................................................................ 21 Channel Buffer Pointers ......................................................................................................... 21 Data Processing Memory ................................................................................................................. 24 General ................................................................................................................................... 24 Transmit Data Buffer .............................................................................................................. 24 Transmit Command Buffer ..................................................................................................... 26 Minimum Number of Data Bytes in a Tx Buffer.................................................................... 30 Receive Data Buffer ............................................................................................................... 31 Receive Command Buffer ...................................................................................................... 33 Minimum Buffer Size ............................................................................................................. 37 Device Operation ...................................................................................................................................... 38 Device Initialization ......................................................................................................................... 38 Channel Initialization ....................................................................................................................... 38 Data Transmission and Reception Operation ................................................................................... 39 Channel Period ................................................................................................................................ 41 Memory Address ............................................................................................................................. 42 Memory Address Extension ................................................................................................... 42 Activation Memory Address................................................................................................... 42 Memory Address Restrictions................................................................................................. 43 Interrupt Indication .......................................................................................................................... 43 Detailed Specifications .............................................................................................................................. 48 Absolute Maximum Ratings ............................................................................................................ 48 Recommended Operating Conditions .............................................................................................. 48 DC Electrical, Power Supply and Capacitance Characteristics ........................................................ 49 AC Characteristics ........................................................................................................................... 50 Serial Interface........................................................................................................................ 50 External Memory Interface ..................................................................................................... 54 Channel Activation/Deactivation ............................................................................................ 56 Input Characteristics ............................................................................................................... 57 Output Characteristics ............................................................................................................ 58 Mechanical Specifications ............................................................................................................... 59 Ordering Information ................................................................................................................................ 60 Notes ......................................................................................................................................................... 61
PT019(05/02)
3
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Block Diagram
Figure 2. Block Diagram of PT7A6632
16 A0-A15 D0-D7 READ WRITE AS DMND ATTN ATACK SYSACC INTR 8
RSER
Receive Bit-Level Processor Memory Manager
RSYNC RRED RCLK TCLK TSER TMAX TSEREN SYSCLK 5 CH0-CH4
Transmit Bit-Level Processor
State / Control Machine
Rx/Tx 2
RESET UAEN MDFS HCS0-HCS1 T1/CEPT SIS
Pin Information
Pin Assignment
Table 1. Pin Assignment
G r ou p Memory Interface Serial Interface CPU Interface State & Control Power
PT019(05/02)
Sym b ol D0-D7, A0-A15, READ, WRITE, AS, DMND RSER, RSYNC, RRED, TSER, TMAX, SYSCLK, TCLK, RCLK, TSEREN ATTN, ATACK, SYSACC, INTR SIS, T1/CEPT, HCS0, HCS1, MDFS, UAEN, RESET, CH0-CH4, Rx/Tx VCC, GND
F u n ct ion Data, Addresses & Signals with Shared Memory Data & Timing with Serial Interface Signals with CPU Device Status & Control Signals Power & Ground
Ver:2
4
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Pin Configuration
Figure 3. Pin Configuration
CH1 CH2 CH3 CH4 Rx/Tx TCLK SYSCLK TSER VCC GND GND D0 D1 D2 D3 D4 D5
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
9 8 7 6 5 4 3 2 1 68 67 66 65 64 63 62 61
NC CH0 HCS1 HCS0 T1/CEPT RESET SIS TMAX NC TSEREN RCLK RSYNC RRED RSER NC GND GND
68-Pin PLCC
60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44
NC INTR AS ATTN SYSACC GND GND GND VCC WRITE READ ATACK DMND MDFS UAEN A15 A14
PT019(05/02)
D6 D7 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 NC Top View
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
5
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Pin Description
Table 2. Pin Description
P in 1, 9, 43, 60, 63 2
Na me NC TMAX
Typ e No con n ect ion I
Descr ip t ion
Tr a n sm it m u lt ifr a m e syn c: pulse input from T1/E1 Trunk Interface, active HIGH. Getting to high indicates the begining of a multiframe. Ser ia l in t er fa ce select : decides the effective edge of TCLK and RCLK. See Table 25. SIS = 1, falling edge of TCLK and RCLK effective. SIS = 0, rising edge effective. R eset : input for initializing the PT7A6632, active HIGH. The initialization will be completed within 90 SYSCLK periods after RESET changes to LOW. The RESET sets the device in the following state: - HDLC mode, - all the FILL/MASK bits are zeros, - all channels deactivated, - transmit channels output all ones. Select T 1 or C E P T mod e: a HIGH sets the device in T1 framing mode, a LOW sets in CEPT PCM-30 framing mode. H yp er ch a n n el select : set standard hyperchannel patterns in T1 or CEPT mode: - In T1 mode (T1/CEPT = 1), HCS0 HCS1 = 01, four channels of 384 kb/s (H0), = 10, single channel of 1.536Mb/s (H11). - In CEPT PCM-30 mode (T1/CEPT = 0): HCS0 HCS1 = 01, single channel of 1.92Mb/s, time-slot 0 and 16 are 64kb/s (H12), = 10, reserved. - In any of T1 or CEPT PCM-30 mode, HCS0 HCS1 = 00, all channels are 64kb/s, = 11, reserved.
3
SIS
I
4
RESET
I
5
T1/CEPT
I
6 7
HCS0 HCS1
I
8 10 11 12 13 14
CH0 CH1 CH2 CH3 CH4 Rx/Tx
O
C h a n n el n u mb er : indicates current active channel's number (binary). CH0 is the LSB and CH4 is the MSB.
O
R eceive/t r a n smit ch a n n el: indicates direction of current active channel. HIGH means receive and LOW means transmit. Tr a n smit clock : Square wave input from T1/E1 Trunk Interface. Used for PT7A6632 transmit interface clock. Its phase must be aligned with that of SYSCLK and frequency is one half of SYSCLK.
15
TCLK
I
PT019(05/02)
6
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Table 2. Pin Description (Continued)
P in 16 17 18, 52 19, 20, 53, 54, 55, 61, 62 21-28 29-42, 44-45 Na me SYSCLK TSER VCC Typ e I O I Descr ip t ion Syst em clock : Provides timing reference for all external memory interface. Frequency = 3.088MHz for T1 or 4.096MHz for CEPT PCM-30. Tr a n smit t ed ser ia l d a t a : Serial data output line, tri-state output to T1/E1 interface, carries transmitter data bit stream. Power su p p ly (+5V)
GND
I
G r ou n d M em or y Da t a lin es: Bidirectional data bus between the PT7A6632 and the shared memory. D0 is the LSB and D7 is the MSB. Memor y Ad d r ess lin es: Output address lines to the external memory. A0 is the LSB and A15 is the MSB. Up p er Ad d r ess E n a b le: Sets the upper address bus lines (A8-A15) state: UAEN = 1: PT7A6632 sets A8-A15 in high impedance during Activation Memory access with SYSACC asserted. UAEN = 0: PT7A6632 sets A8-A15 LOW when SYSACC asserted. Memor y Da t a For ma t Select : MDF S = 1: the most significant bytes of next buffer start address, buffer size and data length are at even addresses respectively in the external memory, and their least significant bytes at odd addresses (68000MPU). MDF S = 0: inverse with the above, i.e., the most significant bytes of next buffer start address, buffer size and data length are at odd addresses respectively in the external memory, and their least significant bytes at even addresses (8080 MPU). Memor y Dema n d : A HIGH informs other devices on the memory bus that the PT7A6632 will access the external memory one TCLK period after DMND assertion (rising edge). The DMND will be deasserted at completion of the memory access. At t en t ion Ack n owled ge: Active HIGH. 6632 responds to the ATTN to access Activation Memory. After completion of the access, 6632 asserts ATACK. ATACK is deasserted in response to deassertion of ATTN (falling edge). Memor y R ea d : Active LOW. Output to the external memory for data reading. When it is LOW, data from memory is latched to the PT7A6632 on the rising edge of SYSCLK. Memor y Wr it e: Active LOW. Output to the external memory for data writing. Syst em Access: Active HIGH. A HIGH indicates the PT7A6632 is accessing Activation Memory locations for channel activation byte or channel buffer pointers.
D0-D7 A0-A15
I/O O
46
UAEN
I
47
MDFS
I
48
DMND
O
49
ATACK
O
50 51 56
READ WRITE SYSACC
O O O
PT019(05/02)
7
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Table 2. Pin Description (Continued)
P in Na me Typ e Descr ip t ion At t en t ion : Active HIGH. A HIGH requires PT7A6632 to process the Channel Activation Byte (CAB) at Activation Memory location xx00H in the shared memory. ATTN will be deasserted in response to assertion of ATACK. Memor y Ad d r ess st r ob e: active LOW. Its falling edge will make a valid memory address be on the memory address lines. I n t er r u p t : active LOW. A LOW indicates that the buffer status byte is under update. Its pulse duration is equal to one SYSCLK period. R eceived Ser ia l Da t a : Serial data input line, receiving data bit stream from the T1/E1 Interface. R eceive R ed Ala r m: A HIGH indicates the received data is invalid due to loss of frame alignment or similar reason. If so, PT7A6632 stops processing in all receive channels until the reception synchronization restored. R eceive Syn ch r on iza t ion : active HIGH. Level or pulse input for receive frame synchronization. R eceive C lock : Clock for serial data receiving. Input from the T1/E1 interface / clock recovery circuit. Frequency is 1.544MHz for T1 or 2.048MHz for CEPT PCM-30. T SE R E n a b le: active HIGH, decides TSER line status along with FILL/MASK bit in descriptor. When TSEREN = 1, FILL/MASK = 1, send data on TSER, FILL/MASK = 0, send a 1 on TSER. When TSEREN = 0, FILL/MASK = 1, Send data on TSER, FILL/MASK = 0, high impedance on TSER.
57
ATTN
I
58 59 64
AS INTR RSER
O O I
65
RRED
I
66 67
RSYNC RCLK
I I
68
TSEREN
I
PT019(05/02)
8
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Functional Description
General Description
The PT7A6632 HDLC Controller is applied between an external memory and T1/E1 trunk interface to perform data transmission and reception. See Figure 1. Its signal attributes are shown in Figure 4. PT7A6632 reads the data to be transmitted from the external memory in 8-bit parallel way, formats them and adapts data rate, then transmits the data to the T1/E1 trunk interface. PT7A6632 receives serial data from the T1/E1 trunk interface,
deformats them and adapts data rate, then stores the data into the external memory. The channel operation modes are set up in the external memory by CPU. PT7A6632 reads the commands from the external memory and process data channel by channel, totally 64 channels (32 for transmission and 32 for receive). Each channel mode can be set up in external memory independently by CPU. PT7A6632 consists of 4 functional blocks as shown in Figure 2. There are: * Transmit Bit-Level Processor, * Receive Bit-Level Processor, * Memory Manager, and * State/Control Machine.
Figure 4. PT7A6632 Interface Signals
16 A0-A15 8 External Memory D0-D7 READ WRITE AS DMND PT7A6632
SYSCLK RSER RSYNC RRED RCLK TCLK TSER TMAX T1/E1 Trunk Interface
ATTN CPU ATACK SYSACC INTR
TSEREN 5 CH0-CH4 Rx/Tx Channel Status Output
2 RESET UAEN MDFS HCS0-HCS1 T1/CEPT SIS Device Mode
PT019(05/02)
9
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Transmit Bit-Level Processor
The block diagram of the Transmit Bit-Level Processor is shown in Figure 5. The external memory stores data to be transmitted and the channel operation modes in a set of linked buffers (referred as Transmit Data/Command Buffers) in the external memory. Refer to Figure 23 and 24 in the External Memory Organization and Definition. For transmit, the PT7A6632 reads the data from external memory, formats it in HDLC format (generates flags, abort and idle code, inserts zero-bit, counts the Frame Check Sequences), non-HDLC signaling format or non-HDLC data format, adapts data rate, and sends the processed data to TSER output via the Transmit Interface.
Timing TCLK clocks data bit stream out at its falling edge. TMAX is multiframe synchronization signal from the T1/E1 trunk interface. SIS decides the TMAX is sampled in rising or falling edge of TCLK . PT7A6632 processes data channel by channel for the data transmission under control of channel counter in the Transmit Interface. See Figure 7-10. Data Rate Adaptation The PT7A6632 can adapt the data rate of sub-64kb/s (n x 8kb/ s, n = 1 - 8) to the standard 64kb/s bearer rate. A FILL/MASK byte in the transmit command buffer is applied to the data bit by bit to perform data rate adaptation. An example is shown in the Figure 6.
Figure 5. Block Diagram of Transmit Bit-Level Processor
To/From Memory Manager
Format & Rate Adapt
(32 Channels)
Transmit Interface
TSER TSEREN
TMAX TCLK State/Control Signals
Figure 6. 32kb/s Subrate Operation - Single Transmit Channel
MSB LSB
ABCDEFGH Data Bytes to Be Transmitted JKLMNOPQ
FILL/MASK Pattern
10111000
FILL/MASK
0 = A fill bit of 1 or high Z (see TSEREN) 1 = Insert bit of data byte starting with LSB
T1/CEPT PCM-30 Serial Output TS m in Frame n TS m in Frame n+1 TS m in Frame n+2 Transmitted Data
1 1 1 H G F 1 E 1 1 1 D C B 1 A 1 1 1 Q P O ... LSB
PT019(05/02)
10
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Figure 7. Transmit Frame Synchronization Timing - T1 Mode, SIS = 1
Channel 24 Bit 7 TCLK TMAX FILL/MASK* Bit 8 Bit F
Channel 1 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
TSEREN (Low) TSER High Z Data Data Data Data High Z Data High Z
TSEREN (High) 1 TSER Data Time Fill 1 Data Data Data 1 1 Data Time Fill
* The F-bit time is processed as if the FILL/MASK = 0. However, this actual FILL/MASK does not apply to the F-bit.
Figure 8. Transmit Frame Synchronization Timing - CEPT PCM-30 Mode, SIS = 1
Time-slot 31 Bit 7 TCLK TMAX FILL/MASK Bit 8
Time-slot 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8
TSEREN (Low) TSER High Z Data Data Data Data High Z Data High Z
TSEREN (High) TSER Data
1 Time Fill
1
1
1
Data
Data
Data
Time Fill
Data
PT019(05/02)
11
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Figure 9. Transmit Frame Synchronization Timing - T1 Mode, SIS = 0
Channel 24 Bit 7 TCLK TMAX FILL/MASK* Bit 8 Bit F
Channel 1 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8
TSEREN (Low) TSER High Z Data Data Data Data High Z Data High Z
TSEREN (High) TSER Data
1 Time Fill
1
1
1
Data
Data
Data
Time Fill
Data
* The F-bit time is processed as if the FILL/MASK = 0. However, this actual FILL/MASK does not apply to the F-bit.
Figure 10. Transmit Frame Synchronization Timing - CEPT PCM-30 Mode, SIS = 0
Time-slot 31 Bit 7 TCLK TMAX FILL/MASK Bit 8
Time-slot 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8 Bit 1
TSEREN (Low) TSER High Z Data Data Data Data High Z Data High Z
TSEREN (High) TSER Data
1 Time Fill
1
1
1
Data
Data
Data
Time Fill
Data
PT019(05/02)
12
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Hyperchannel Three standard ISDN hyperchannel options (two for T1, one for CEPT PCM-30) are available by setting HCS0 and HCS1 as well as T1/CEPT pins. See Table 3 and Figure 11. Table 3. Hyperchannel Selection
T 1/C E P T x 1 1 0 x 0 H C S1 0 1 0 1 1 0 H C S0 0 0 1 0 1 1
All channels can also be randomly grouped into flexible hyperchannel (with HCS0 HCS1 = 00). A hyperchannel can contains any number of 64kb/s channels. Details is illustrated in "External Memory Organization and Definition" and Table 10.
C h a n n el Select ion All channels are 64kb/s. (Flexible hyperchannel can be programmed) Four channels of 384kb/s (H0). Valid for T1 only. Single channel of 1.538Mb/s (H11). Valid for T1 only. Single channel of 1.92Mb/s (H12). Time-slots 0 and 16 are 64kb/s. Valid for CEPT only. Reserved. Reserved.
Figure 11. Standard Hyperchannel Provisory
CEPT PCM-30 Mode
Framing Time-Slot (8 bits) Signaling Channel (8 bits) 64kb/s
F 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 S 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
TS 0, CH 00000 H12 Data Channel (8 Bits) (Typ.) TS 1, CH 00001 TS 17, CH 10001 TS 16, CH 10000 TS 31, CH 11111 1920 kb/s
F1
S1
TS 1, CH 00001
T1 Mode
64kb/s
F 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
CH 00001 CH 00010 CH 11000 384 kb/s H0 F 1
2
3
4
1536 kb/s H11
F1
Note: Grouping of 64kb/s channels into standard hyperchannels is fixed as shown. Time-slot assignments can be changed (when HCS1 HCS0 = 00) to create flexible hyperchannels by programming command buffers.
PT019(05/02)
13
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Tri-State Serial Data Output TSER The TSER can be set to different state by setting TSEREN pin and FILL/MASK byte in the transmit command buffer. See Table 4. Table 4. Output Selection on TSER
T SE R E N F I L L /MASK 1 0 1 0 0 0 1 1 O u t p u t on T SE R Send a 1 High-impedance output
*
Non-HDLC Signaling Mode
The non-HDLC signaling requires no special consideration in transmit data processing. In non-HDLC signaling mode, CF/P bit of STATUS byte of allocated data buffer should be reset to ensure uninterrupted data transmit. The PT7A6632 assumes that no more than 2 linked data buffers are allocated to the signaling channel by the CPU. Details are shown in Section "External Memory Organization and Definition" and Tables 8 and 14. * Loop Mode
Send data Send data
When TSEREN = 0, and FILL/MASK bit = 0, the TSER output line is in high impedance. This feature allows to connect up to eight PT7A6632 devices together to realize subrate TDM transmission. Channel Operation Modes The transmit channels can be set in the following operation modes by CPU in transmit command buffer. See MODE byte in the transmit command buffer for details (Figure 24). * HDLC Mode
When a transmit channel is specified in Loop Mode, the PT7A6632 will send the data of this channel into an intermediate buffer in PT7A6632 in channel period while sends the data to TSER output. The data then will be sent back to the external memory via a receive channel in Loop Mode. Each time only one transmit and one receive channel can be specified in Loop Mode. The transmit loop channel number and receive loop channel number are not necessarily identical. The Loop Mode does not support hyperchannel. If only a transmit loop channel is defined without a receive loop channel defined, the loop operation can not be performed. Reset the device will delete all Loop Mode. * Logical Inversion
In HDLC mode, the Transmit Processor generates flags, abort and idle code, inserts zero-bit, count the Frame Check Sequences (FCS) for the data. In HDLC mode, it is programmable to attach a number of flags to the end of HDLC frame as time-fill sequence. The number of flags is specified in the transmit data buffer. The PT7A6632 counts the intentionally inserted zeroes based on HDLC format. These intentionally inserted zeroes may be counted as intraframe time-fill bits. In this case, the programmed flag number will be adjusted according to the counting result. Reset the device will make all channels in HDLC mode. * Non-HDLC Data Mode
If a transmit channel is set in inversion mode, data including flag, ABORT and FCS bits will be inverted bit by bit when transmit processing. Device reset sets all channel in inversion mode. Data Transmission Order The PT7A6632 transmits data bytes in the same time sequence as they are arranged in ascending addresses in the external buffers. For a certain channel, the data at byte address m is transmitted first, the data at address m+1 is transmitted next, and so on while the data bytes are in the same buffer. After the data in a data buffer is exhausted, the PT7A6632 starts to transmit the next byte from the next buffer whose address is specified in the current buffer. The transition to the next buffer is transparent to the CPU while the flow of actual data is maintained. This natural sequence of data flow is maintained for flexible hyperchannels, as well. The PT7A6632 transmits the LSB (D0) of a data byte first; then the next LSB second; and the MSB (D7) last. The only exception is that the MSB of the HDLC FCS (CRC-CCITT) is transmitted first; the LSB transmitted last.
In non-HDLC data mode, the data from memory directly transmit on TSER. In non-HDLC data channel mode (DMI mode 0 or 1), CF/P bit of STATUS byte of allocated data buffer should be reset to ensure uninterrupted data transmit.
PT019(05/02)
14
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Receive Bit-Level Processor
The block diagram of the Receive Bit-Level Processor is shown in Figure 12. The receive bit-level processor accept serial data from the T1/E1 trunk interface, perform HDLC deformat (processes flags, abort, deletes zeroes, checks FCS, filters time-fill bits), or other non-HDLC functions and assemble the processed bit, including HDLC header, into bytes and sends them into the external memory. The CPU sets up the channel operation in a set of linked buffers (referred as receive command/data buffer) in the external memory. Refer to Figure 26 and 27 in the Section "External Memory Organization and Definition". Timing Generally, the starting of a data frame received from the T1/E1 trunk interface is not correlated with that of a transmit frame. As PT7A6632 uses same 8-bit memory bus for data writing and reading, an elastic buffer is adopted to coordinate the data access on the bus. The received data stream is clocked into the elastic buffer by the RCLK and then clocked out to the Deformat and Rate Adapt circuit by the TCLK. In this way, the data flow on the memory bus is simple and coordinated. The data is sampled and processed in rising edge (SIS = 0) or falling edge (SIS = 1) of the RCLK. See Figure 14-17. The RSYNC is used for receive frame synchronization. Data Rate Adaptation Reverse process of data rate adaptation of transmission. Illustrated in Figure 13.
Receive Mornitor The PT7A6632 monitors the Receive Red Alarm (RRED) input. Once the PT7A6632 detects RRED high, it will stop data processing in all receive channels and reports by writing the Status byte. The synchronization will be restored by TMAX and RSYNC signals. The PT7A6632 performs data validity check (checks CRC) for the received data. Once the PT7A6632 finds any errors in the CRC, the receive interface will stop data processing in current channel until detects a new HDLC flag byte. The situation is reported to the external memory. Details are shown in Table 11 for STATUS byte, ABRT, FCER and SHER bits in Section "External Memory Organization and Definition". Hyperchannel Three standard ISDN hyperchannel options (two for T1, one for CEPT PCM-30) are available by setting HCS0 and HCS1 as well as T1/CEPT pins. See Table 3 and Figure 11. The channels can also be randomly grouped into flexible hyperchannel (with HCS0 HCS1 = 00). A hyperchannel can contains any number of 32 64kb/s channels. Details is illustrated in Section "External Memory Organization and Definition" and Table 10. Channel Operation Modes See receive command buffer in Section "External Memory Organization and Definition" for details (Figure 27).
Figure 12. Block Diagram of Receive Bit-Level Processor
To/From Memory Manager
Deformat & Fill/Mask Filter
(32 Channels)
Receive Interface
Elastic Buffer
RRED RSER RCLK RSYNC TCLK
State/Control Signal
PT019(05/02)
15
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
*
HDLC Mode
*
Non-HDLC Signaling Mode
In HDLC mode, the Receive Processor detects flags, abort, delete zero-bit, check the Frame Check Sequences (FCS), and filters the time-fill bits by applying FILL/MASK byte to the received data. Reset the device will make all channels in HDLC mode. * Non-HDLC Data Mode
In non-HDLC signaling mode, PT7A6632 detects the multiframe alignment sequence. If the alignment sequence is valid, the received data will be sent to the external memory; if not, the data will not be sent to external memory until a valid alignment sequence is detected. The loss of the multiframe alignment will be reported to external memory. Any channel(s) can be specified to receive bit-oriented signaling. This feature is very useful in central office switching applications.
In this mode, received data are directly written into external memory without deformating. Figure 13. 32kb/s Subrate Operation - Single Receive Channel
T1/CEPT PCM-30 Serial Input TS m in Frame n+1 TS m in Frame n Received Data
A1BCD111E1FGH111
10111000
FILL/MASK
ABCDEFGH
Assembled Data Byte
MSB
LSB
Figure 14. Receive Frame Synchronization Timing - T1 Mode, SIS = 1
RRED
~ ~
~ ~
~ ~
~ ~
~ ~
~ ~
Proving Period 1 ( one full multiframe)
Proving Period 2 (one full multiframe)
Proving Period 3 (one full multiframe)
(One full multiframe) From this point, fully multiframe synchronized until RRED goes high
RCLK RSER RRED RSYNC Channel 24, last frame of a multiframe PT019(05/02) Channel 1, first frame of the next multiframe Bit 7 Bit 8 Bit F Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8
~ ~
RSYNC
~ ~
16
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Figure 15. Receive Frame Synchronization Timing - CEPT PCM-30 Mode, SIS = 1
RRED
~ ~
~ ~
~ ~
~ ~
~ ~
~ ~
Proving Period 1 ( one full multiframe)
Proving Period 2 (one full multiframe)
Proving Period 3 (one full multiframe)
(One full multiframe) From this point, fully multiframe synchronized until RRED goes high
RCLK RSER RRED RSYNC Time-slot 31, last frame of a multiframe Time-slot 0, first frame of the next multiframe Bit 7 Bit 8 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8
Figure 16. Receive Frame Synchronization Timing - T1 Mode, SIS = 0
~ ~
~ ~
~ ~
~ ~
~ ~
~ ~
Proving Period 1 ( one full multiframe)
Proving Period 2 (one full multiframe)
Proving Period 3 (one full multiframe)
(One full multiframe) From this point, fully multiframe synchronized until RRED goes high
RCLK RSER RRED RSYNC Channel 24, last frame of a multiframe Channel 1, first frame of the next multiframe Bit 7 Bit 8 Bit F Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8
PT019(05/02)
~ ~
RSYNC
~ ~
RRED
~ ~
RSYNC
~ ~
17
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Figure 17. Receive Frame Synchronization Timing - CEPT PCM-30 Mode, SIS = 0
~ ~
~ ~
~ ~
~ ~
~ ~
~ ~
Proving Period 1 ( one full multiframe)
Proving Period 2 (one full multiframe)
Proving Period 3 (one full multiframe)
(One full multiframe) From this point, fully multiframe synchronized until RRED goes high
RCLK RSER Bit 6 RRED RSYNC Time-slot 31, last frame of a multiframe Time-slot 0, first frame of the next multiframe Bit 7 Bit 8 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8
*
Loop Mode
Data Reception Order The PT7A6632 writes received data bytes in the external memory in the same order in which they are received in time. For a certain channel, the first received byte is written at byte address m, the second received at byte address m+1, and so on as long as the buffer is not completely filled or an end-of-frame is not reached. After the end of the frame or the end of the buffer (whichever occurs first) is detected, the PT7A6632 writes the next received data byte at the first allocated address of the next available buffer. The PT7A6632 writes the first received data bit of an octet at the LSB (D0) position of the external buffer byte, the second received data bit at the next to LSB position, and so on. The last (8th) received data bit of an octet is written at the MSB (D7) position of the data byte.
When a receive channel is specified in Loop Mode, data to be sent to the external memory is not from the external T1/E1 trunk interface, instead, it is fetched internally from an intermediate buffer in the PT7A6632, in which the data was from a loop mode transmit channel. Thus the data from the external memory is feedback to external memory. Each time only one transmit and one receive channel can be specified in Loop Mode to guarantee normal operation. The transmit loop channel No. and receive loop channel No. are not necessarily identical. The Loop Mode does not support hyperchannel. Reset the device will delete all Loop Mode. * Logical Inversion
If a receive channel is set in inversion mode, the received data will be inverted bit by bit when being processed, including flag, ABORT and FCS bits. Reset the device will make all channel in inversion mode.
PT019(05/02)
~ ~
RSYNC
~ ~
RRED
18
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Memory Manager
The Memory Manager controls data flow between Transmit Processor/Receive Processor and the external memory as shown in Figure 18. CPU assigns the external memory into several parts for activation information (Activation Memory) and data processing information (Data Processing Memory) as shown in Figure 20 in Section "External Memory Organization and Definition". The Data Processing Memory is allocated to each transmit and receive channel for data, command and status storage. The CPU allocated enough memory in the buffers for the real-time operation of transmit and receive with no data underrun or overrun. The external memory is managed with minimal intervention from the CPU. The CPU sends out an ATTN signal to command PT7A6632 to access the Activation Memory that contains channel number and channel starting address. The SYSACC signal is asserted by PT7A6632 during accessing the Activation Memory. After the access, the ATACK will be asserted. The Data Processing Memory contains such information as next buffer address, operation mode, buffer size, data length, buffer status and HDLC frame completion status. They are set up by CPU. PT7A6632 accesses the buffers and processes data and update the status in the buffers after processing. DMND is asserted by the PT7A6632 to inform other devices using the memory bus that PT7A6632 will access the external memory one TCLK period after rising edge of the DMND. INTR asserted when PT7A6632 updates the status byte in buffers. The memory manager responds to CPU-initiated changes in the operational modes of a channel or relocation of the allocated buffers without affecting the operation of the other channels. The timing for the memory access is generated from SYSCLK.
State/Control Machine
The State/Control Machine processes the device mode and status. MDFS sets the memory location pattern, i.e., the even addresses in external memory are for higher bytes (MDFS = 1) or for lower bytes (MDFS = 0) of the Next Buffer Starting Address, Buffer Size and Data Length respectively. Figure 19
To Rx and Tx Processors & Memory Manager 5
CH0CH4 Rx/Tx
State / Control Machine
2
RESET UAEN MDFS HCS0-HCS1 T1/CEPT SIS
UAEN sets the Upper address lines (A8 - A15) in high impedance (UAEN = 1) or in Low state (UAEN = 0) when accessing Activation Memory. When the upper address lines in high impedance, the CPU can drive them to any state during accessing activation memory. HCS0, HCS1 and T1/CEPT select T1 or CEPT PCM-30 mode and hyperchannel (Table 3). SIS selects trigger edge of RCLK and TCLK. TSEREN sets TSER output line state, i.e., sending data, sending "1" or in high impedance (Table 4). CH0 to CH4 and Rx/Tx are status outputs indicating the current active channel number and direction. CH0 is LSB, CH4 is MSB. The main clock for PT7A6632 is generated by the State/Control Machine from SYSCLK.
Figure 18. Diagram of Memory Manager with External Memory and CPU
A0-A15 D0-D7
CPU
External Memory
READ WRITE AS DMND
Memory Manager
From Rx Bit-Level Processor / To Tx Bit-Level Processors
SYSCLK
3
ATTN ATACK, SYSACC, INTR
PT7A6632
PT019(05/02)
19
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
External Memory Organization and Definition
General Structure
The external memory is divided by the CPU into two functional blocks for channel activation and data processing, referred as Activation Memory and Data Processing Memory. The Activation Memory contains Channel Activation Byte
and Channel Buffer Pointers, providing PT7A6632 such information as channel activation/deactivation, channel direction (transmit or receive) and channel starting addresses. CPU allocates the Channel Starting Pointer for each receive and transmit channel. The Data Processing Memory contains data/command buffers storing descriptors, user's data received or to be transmitted, channel operation mode and status. CPU allocates a set of linked data/command buffers for each receive and transmit channel. Details are shown in Figures 20-22.
Figure 20. External Memory Map - Top Level
External Memory
(Address) (Contents)
0 1 2 j
~ ~
Channel Activation Byte
~ ~
~ ~
j + 128 to j + 255 128 Bytes of System Memory for Channel Buffer Pointers
~ ~
Activation Memory
~ ~
p p+1 to p+n 1 n-Byte Data Buffer For Tx Channel #m
~ ~
~ ~
x x+1 to x+n-1
~ ~
Data Processing Memory
n-Byte Data Buffer For Rx Channel #k
PT019(05/02)
20
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Activation Memory
The Activation Memory map is shown in the Figure 21. Channel Activation Byte The Channel Activation Byte are illustrated in the following table 5. The PT7A6632 reads this byte so that gets the channel number, the channel state (active or inactive) and the channel direction (transmit or receive). The PT7A6632 asserts SYSACC when it accesses the Activation Memory. Table 5. Channel Activation Byte
Bit 7 Act ive b it 1 The channel activated 0 The channel deactivated Unused Receive 1 Bit 6 Bit 5 R x/T x b it
Channel Buffer Pointers Channel Buffer Pointers provide PT7A6632 the channel starting address (16-bit) for each channel, 64 channels totally, guiding to a link of buffers containing data and command. The relative location of the upper and lower bytes of the 16-bit start address word is determined by the MDFS input (see Figure 17). The upper address lines (A8-A15) are placed in the high-impedance state or LOW by the PT7A6632 during the Activation Memory accesses.
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
C h a n n el Nu mb er 0 ~ 31 (Bin a r y) 0 0 0 0 0 0 - channel 0, 0 0 0 0 1 - channel 1, 0 0 0 1 0 - channel 2, etc.
Transmit
Figure 21a. Activation Memory Map Locations (MDFS = HIGH)
a. MDFS = HIGH (68000 Based)
(Address) (HEX) XX00 XX01 XX7F XX80 XX81 XX82 XX83 7 Active 6 x 5 Rx/Tx (Contents) 4 3 2 1 Channel Number 0 Channel Activation Byte
~ ~
Byte Addresses xx01 Through xx7F Are Not Used by PT7A6632 Transmit Channel 0 Start Address (High-Order Byte) Transmit Channel 0 Start Address (Low-Order Byte) Transmit Channel 1 Start Address (High-Order Byte) Transmit Channel 1 Start Address (Low-Order Byte)
~ ~
~ ~
XXBE XXBF XXC0 XXC1
Transmit Channels 2 to 30 Start Addresses Transmit Channel 31 Start Address (High-Order Byte) Transmit Channel 31 Start Address (Low-Order Byte) Receive Channel 0 Start Address (High-Order Byte) Receive Channel 0 Start Address (Low-Order Byte)
~ ~
Channel Buffer Pointers
~ ~
XXFE XXFF
Receive Channels 1 to 30 Start Address Receive Channel 31 Start Address (High-Order Byte) Receive Channel 31 Start Address (Low-Order Byte)
~ ~
PT019(05/02)
21
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Figure 21b. Activation Memory Map Locations (MDFS = LOW)
b. MDFS = LOW (iAPX 86 Based)
(Address) (HEX) XX00 XX01 XX7F XX80 XX81 XX82 XX83 (Contents) 4 3
7 Active
6 x
5 Rx/Tx
2 1 Channel Number
0 Channel Activation Byte
~ ~
Byte Addresses xx01 Through xx7F Are Not Used by PT7A6632 Transmit Channel 0 Start Address (Low-Order Byte) Transmit Channel 0 Start Address (High-Order Byte) Transmit Channel 1 Start Address (Low-Order Byte) Transmit Channel 1 Start Address (High-Order Byte)
~ ~
~ ~
XXBE XXBF XXC0 XXC1
Transmit Channels 2 to 30 Start Addresses Transmit Channel 31 Start Address (Low-Order Byte) Transmit Channel 31 Start Address (High-Order Byte) Receive Channel 0 Start Address (Low-Order Byte) Receive Channel 0 Start Address (High-Order Byte)
~ ~
Channel Buffer Pointers
~ ~
XXFE XXFF
Receive Channels 1 to 30 Start Address Receive Channel 31 Start Address (Low-Order Byte) Receive Channel 31 Start Address (High-Order Byte)
~ ~
PT019(05/02)
22
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Figure 22. Organization and Linking of Data or Command Buffers
Address i 7
Buffer 1
0
Next Buffer Start Address Buffer Size Data length Status byte
8 Bytes of Buffer Descriptor*
i+7 i+7+1
~ ~
i+7+k 7 m
k Bytes of User s Data or 2 Bytes of Channel Mode & Rate Definition Data
~ ~
Data or
Command
Buffer 2
0
Next Buffer Start Address Buffer Size Data length Status byte
8 Bytes of Buffer Descriptor*
m+7 m+7+1
~ ~
m+7+n
n Bytes of User s Data or 2 Bytes of Channel Mode & Rate Definition Data
~ ~
Data or
Command
7 p
Buffer N
0
Next Buffer Start Address Buffer Size Data length Status byte
8 Bytes of Buffer Descriptor*
p+7 p+7+1
~ ~
p+7+r
r Bytes of User s Data or 2 Bytes of Channel Mode & Rate Definition Data
~ ~
Data or
Command
* Formats are different for Data buffer and Command buffer, and differs with MDFS PT019(05/02)
23
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Data Processing Memory
General The Data Processing Memory refers to Data or Command buffers which are linked each other. The PT7A6632 accesses the Data Processing Memory for transmit/receive data and operation commands. Each buffer has following configuration (see Figure 22): * 8-Byte Descriptors * Data bytes to be transmitted or received or Command Figure 23. Transmit Data Buffer
(Address) 7 msb lsb Not used Descripto rs msb lsb
FC FO
There are 4 kinds of buffers, Transmit Data Buffer and Transmit Command Buffer for transmit channels, and Receive Data Buffer and Receive Command Buffer for receive channels. Transmit Data Buffer The Transmit Data Buffer contains 8 bytes of descriptors and j bytes of user's data as shown in Figure 23. The MDFS pin decides the most significant byte and least significant byte locations (in even and odd addresses).
(Contents)
0 Next Buffer Address Buffer Size (k) Data Length (j)
(Address)
7
(Contents)
0 lsb Next Buffer Address Buffer Size (k) Data Length (j) Status
i i+1 i+2 i+3 i+4 i+5 i+6 i+7 (i+7)+1 (i+7)+2
i i+1 i+2
Descriptor s msb
lsb Not used msb lsb
FC FO UNDR IVBA
i+3 i+4 i+5 i+6 i+7
Not used msb lsb Not Used by PT7A6632
Not used msb Not used
CF/P CMND MPTY
-
UNDR IVBA
Not used First Date Byte
CF/P CMND MPTY
-
(0)
(0)
Status
Not Used by PT7A6632 First Date Byte Second Date Byte Data
(i+7)+1 (i+7)+2
Data
Second Date Byte
~ ~
(i+7)+j (i+7)+j+1
Last Date Byte Flag Count (Optional)
~ ~
~ ~
(i+7)+j (i+7)+j+1
Last Date Byte Flag Count (Optional)
~ ~
~ ~
(i+7)+k
Last Location in Buffer
~ ~
(i+7)+k
~ ~
Last Location in Buffer
~ ~
a. MDFS = 1
b. MDFS = 0
*
Descriptors
The first 8 bytes in the transmit Data Buffer is Descriptors that specifies Next Buffer Address, Buffer Size, Data Length and Status respectively. See Table 6 for the definition. * Data Bytes
data buffer) or Buffer Size (for partial data buffer). The buffer may contains last byte of a frame (CF/P = 1) or partial data of a frame (CF/P = 0) in HDLC mode. The CF/P should be reset for other modes. * Flag Count Byte (Optional)
Following the Descriptors are the data to be transmitted. The number of bytes are specified by Data Length (for complete
Specifies the additional flags to be added after "CRC + one Flag" of a frame. It will be read only when Flag Control bit in the MS byte of Data Length is set (FC = 1).
PT019(05/02)
24
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Table 6. Descriptors in Transmit Data Buffer
Na me Next Bu ffer Ad d r ess Bu ffer Size Descr ip t ion 16-bit address word, pointing to next buffer for 6632 to access 12-bit, specifies byte number of memory locations allocated by the CPU for current buffer. The 6632 reads the Buffer Size only when the Status (CF/P = 0) shows that the data buffer contains partial data. The 6632 will convert the Buffer Size to the actual number of data bytes in this buffer. F la g C on t r ol: 1-bit, indicates if any additional flags (except the minimum one flag followed CRC for HDLC format) to be appendixed after the (CRC+1 FLAG) of the HDLC data. If FC is reset by the CPU, it means no additional flag to be added. If set by the CPU, it means there will be additional flag(s) to be added to the data. The number of the additional flag(s) is specified in the optional FLAG COUNT byte in the Tx Data Buffer. F la g O ffset C ou n t : 1-bit, meaningful only when FC = 1. If FO is set by the CPU, the Tx channel counts the total number of intentionally inserted zeros based on HDLC protocol, then divides the counted results by 8.The quotient (called "Flag Offset") represents the number of non-data byte inserted in the data. The 6632 subtracts the Flag Offset from the FLAG COUNT, which was set without knowledge of the inserted zeros. The resultant is the actual number of additional flags to be added to the data. 12-bit, specifies the actual number of data bytes to be transmitted in the Tx Data Buffer. The 6632 reads the Data Length only if the Status shows that the buffer contains the last byte of a frame (CF/P = 1). E mp t y: 1-bit, if set by the CPU, it means the buffer is empty, i.e., data is not ready for transmission. The 6632 will keep polling this bit until it is reset. The CPU resets this bit when the data is ready. 6632 sets the bit to 1 once it completes data transmission in the buffer, and the CPU can reuses the empty locations. C omma n d : 1-bit, when set by the CPU, it means the buffer is a Command Buffer. If reset by the CPU, it is a Data Buffer. C omp let e F r a me/Pa r t ia l Da t a Bu ffer : 1-bit, set by the CPU to show that the data buffer contains the last byte of an HDLC framed data. Actual number of data bytes is specified by the Data Length (Max. Data Length: 4095). If it is reset by the CPU, it means the buffer contains partial data of a frame, and the rest data is in succeeding buffer(s). The 6632 automatically turns to the next successding buffer. Actual number of data bytes is specified by the Buffer Size (Max. Buffer Size: 4095). For non-HDLC data, the bit should be 0 for continuously data transmission, otherwise data transmission will be interrupted. I nva lid Bu ffer Ad d r ess: 1-bit, the 6632 sets the bit if it finds an invalid Next Buffer Address, i.e., such as address of 16 zeros or in form of FFFx. In this case, the Tx channel will be deactivated and all-one bytes be transmitted until the channel is re-activated by the CPU. Un d er r u n : 1-bit, the 6632 sets the bit if the current Tx channel runs out of data, e.g., when the 6632 finds an invalid buffer address, an empty buffer, or a command buffer following a partial data buffer. If so, the 6632 will send out an ABORT code followed by Flags until the condition is cleared (if in HDLC mode), or the 6632 will send out all-ones bytes repeatedly until the CPU sets up a valid non-empty data buffer (if in non-HDLC mode).
FC FC
FO FO
Da t a L en gt h
MP T Y
C MND
C F /P
I VBA
UNDR
PT019(05/02)
25
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Transmit Command Buffer The Transmit Command Buffer contains 8 bytes of descriptors and 2 bytes of Channel Mode & Rate Definition Data (and maybe the Hyperchannel Configuring Bytes) as shown in Figure 24. The MDFS pin decides the MS byte and LS byte locations (in even and odd addresses). Figure 24. Transmit Command Buffer
(Address)
7 msb
(Contents)
0 Next Buffer Address
(Address)
7
(Contents)
0 lsb Next Buffer Address
i i+1
Descriptor s
lsb Not used Not used Not used msb Not Used
x 0 IVBA 0 0
i i+1 i+2
Descriptor s
msb Not used Not used msb Not used
x IVBA
i+2 i+3 i+4 i+5 i+6 i+7
i+3 i+4
lsb Data Length (j)
lsb Data Length (j) Not used Not used
CF/P CMND MPTY (1)
i+5 i+6 i+7
-
Not used
0
CF/P
- CMND MPTY Status
(1)
Status
(i+7)+1 (i+7)+2 (i+7)+3
INV LOOP SIG HDLC
Mode FILL/MASK Hyperchannel Configuring
(i+7)+1 (i+7)+2 (i+7)+3
0
0
0
0
INV LOOP SIG HDLC
Mode FILL/MASK
~ ~
(i+7)+j
E A x Channel Number
~ ~
~ ~
(i+7)+j
E A x Channel Number
~ ~
a. MDFS = 1
b. MDFS = 0
PT019(05/02)
Hyperchannel Configuring
E
A
x
Channel Number
E
A
x
Channel Number
26
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
*
Descriptors
The first 8 bytes in the Transmit Command Buffer are Descriptors that specify Next Buffer Address, Data Length and Status respectively. See Table 7 for the definition. Table 7. Descriptors in Transmit Command Buffer
Na me Next Bu ffer Ad d r ess Da t a L en gt h Descr ip t ion
16-bit address word, pointing to next buffer for 6632 to access 8-bit, decides the non-flexible-hyperchannel process or flexible hyperchannel process. Data Length = 0, 1 or 2, only non-hyperchannel process, Data Length > 2, there is hyperchannel process. E mp t y: 1-bit, the CPU sets it to show that the buffer is empty, i.e., command data is not ready. In this case the 6632 will keep polling this bit until it is reset.The CPU resets this bit when the command data is ready. 6632 sets the bit to inform the CPU completion of command processing in the buffer. C omma n d : 1-bit, set by the CPU to indicate the buffer is a Command Buffer. C om p let e C om m a n d Bu ffer /P a r t ia l C om m a n d Bu ffer : 1-bit, set by the CPU to indicate that the command buffer is a Complete Command Buffer. During the Complete Command Buffer processing, the 6632 will transmit an HDLC ABORT if it is in HDLC mode. The CPU resets the CF/P bit to indicate a Partial Command Buffer (CF/P=0, CMND=1). In this case the 6632 will send HDLC flag or non-HDLC all-ones byte(s), then continue to process next buffer. I nva lid Bu ffer Ad d r ess: 1-bit, the 6632 sets the bit if it finds an invalid Next Buffer Address, such as address of 16 zeros or in form of FFFx. In this case, the Tx channel will be deactivated and all-one bits be transmitted until the channel is re-activated by the CPU.
MP T Y
C MND
C F /P
I VBA
PT019(05/02)
27
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
*
MODE Byte (Channel Mode)
The MODE byte is set up by the CPU to specify channel modes of HDLC, non-HDLC signaling, non-HDLC data, loop, nonloop, inversion or non-inversion. The details are shown in Table 8. Table 8. MODE Byte in Transmit Command Buffer
MO DE Bits 7 - 4 Bit 3 I NV 0 1 Bit 2 LOOP 0 Non-loop channel Non -H DL C d a t a ch a n n el mod e: used in modes 0 and 1 of DMI application. CF/P should be reset 00 to get uninterrupted data transmission, otherwise the 6632 will transmit all-one byte repeatedly following the last byte in the buffer. The channel time fill and the idle codes are the same. H DL C d a t a ch a n n el m od e: The channel is an HDLC channel or an LAPD message-oriented 01 channel. Information field is in integral bytes, 16-bit CRC-CCITT polynomial is used to calculate FCS, and ABORT sequence satisfies SDLC and HDLC requirements. Non -H DL C sign a lin g ch a n n el m od e: The channel carries bit-oriented signaling data. 6632 10 assumes that no more than 2 linked data buffers are allocated to the signaling channel by the CPU. The last data buffer (even if it is the only buffer) is assumed to be a recirculating buffer. 11 Reserved Non-invertion Loop channel Na me Not used 1 Invertion Descr ip t ion
Bit 1, Bit 0
SI G , H DL C
PT019(05/02)
28
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
*
FILL/MASK Byte (Rate Definition)
The FILL/MASK byte is used as a masking pattern on the HDLC-formatted (including FLAG, header, data, CRC, and ABORT code) or non-HDLC-formatted data in order to adapt subrates that are multiples of 8kb/s to the 64kb/s rate. The 8-
bit sequence is applied to data on a bit by bit basis to insert 1 (FILL/MASK bit = 0) for time fill, or insert data bit (FILL/ MASK = 1). See an example in Figure 6 in Section "Transmit Bit-Level Processor" and Table 9. For bit-oriented signaling mode, the FILL/MASK should be set as 1111 1111. If not, the PT7A6632 will not override any other FILL/MASK pattern.
Table 9. Examples of FILL/MASK Options
O p t ion Nu mb er
Da t a Rat e
Bit 7
(MSB)
6
5
4
3
2
1
0
(L SB)
R ema r k s
0* 1
0 kb/s 8 kb/s
0 0 0 0 0 0 1 0 0 0 1 1 0 0 0
0 0 0 0 0 0 1 0 1 0 1 0 0 0 1
0 0 1 1 0 0 0 0 0 0 1 1 0 1 1
0 0 0 0 0 1 0 0 1 0 1 0 1 1 1
0 0 0 0 1 0 0 0 0 1 0 1 1 1 1
0 0 0 0 1 1 0 1 1 1 0 0 1 1 1
0 0 0 1 0 0 0 1 0 1 0 1 1 1 1
0 1 0 0 0 0 0 1 0 1 0 0 1 1 1
No data will be sent. Eight 1s for time fill will be sent if TSEREN=1. A r b i t r a r y - u s e r d e fi n e d ; a 1 i n a ny o n e b i t position, but only one 1. Us e r d e fi n e d p a t t e r n ; a 1 i n a ny t wo b i t positions, but only two 1s.
2
16 kb/s
3
24 kb/s
A total of three 1s anywhere as defined by user.
4
32 kb/s
A total of four 1s anywhere as defined by user.
5 6
40 kb/s 48 kb/s
A total of five 1s anywhere as defined by user. A total of six 1s anywhere as defined by user. Standard rate in digital data service, restricted version of 64 kb/s. A total of seven 1s anywhere as defined by user.
7
56 kb/s 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1
8
64 kb/s
1
* A special purpose mode in which the transmitter operates as if it is at 64 kb/s, including when it is fetching data from the external memory, even though no data is transmitted.
PT019(05/02)
29
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
*
Flexible Hyperchannel Configuring Byte (Optional)
The byte follows the FILL/MASK byte if any. It is used to configure flexible hyperchannel. Bits 0 - 4 specify number of a channel to be grouped into or removed from a hyperchannel. Bits 6 and 7 is for hyperchannel enable and add/delete respectively. See Table 10 for details. Table 10
Bit 7 (E ) 0 1 1 Bit 6 (A) x 0 1 Descr ip t ion Hyperchannel assignment remains unchanged. Delete channel number in bits 0-4 from hyperchannel. Add channel number in bits 0-4 to hyperchannel.
The channel map may be updated in one cycle of channel counting. In flexible hyperchannel mode, the HCS0 and HCS1 should be set as "0 0", otherwise the standard hyperchannel will override the flexible hyperchannel. * Partial Command Buffer
If the CPU can not make next buffer ready before the PT7A6632 completes data transmission of a channel, the CPU will reset the CF/P bit to indicate that it is a Partial Command Buffer (CF/P=0, CMND=1). In this case the PT7A6632 will read Next Buffer Address and send a HDLC flag(s) or a non-HDLC octet all-ones to fill the gap, then the PT7A6632 turns to a new buffer chain as if it complete a normal buffer process by setting the MPTY and CF/P bits. The PT7A6632 sends out flags or all-ones until it is informed to resume data transmission by the CPU again. One Partial Command Buffer sends one flag or one all-ones byte, a chain of Partial Command Buffer sends multiple flags or ones. The Partial Command Buffer processing will not change the MODE and FILL/MASK. If a Partial Command Buffer is processed after a partial data buffer, the HDLC ABORT or non-HDLC all-ones will be sent. Minimum Number of Data Bytes in a Tx Buffer For Transmit Data Buffers and Transmit Command Buffers, minimum number of data bytes is required for buffer maintenance and buffer transition. The minimum numbers depend on the current buffer type and next buffer type. Refer to Figure 25.
Data Length is used to specify flexible hyperchannel. When Data Length = 0, 1 or 2, only normal channel process. When Data Length > 2, there is hyperchannel process. * Flexible Hyperchannel
The Flexible Hyperchannel mode allows the PT7A6632 to group any number of 32 64kb/s channels into a hyperchannel. The Data Length (>2) is read to decide the number of additional channels to be added to a hyperchannel. If a previously activated channel is assigned to a flexible hyperchannel, it will suspend the original buffer process, and the process will be restored once the channel is released from the hyperchannel. It may take one frame time. A channel can be assigned to one hyperchannel only. Figure 25. Minimum Data Bytes for Transmit Buffer
Current Buffer Partial Data Buffer (000)* Next Buffer Complete Data Buffer (001)* 3 Bytes Partial Data Buffer (000)* 6 Bytes Next Buffer Complete Data Buffer (001)* 2 Bytes
Current Buffer Complete Data Buffer (001)* Next Buffer Partial Data Buffer (000)* 5 Bytes
Current Buffer Command Buffer (10x)*
Complete Data Buffer (001)* 2 Bytes
Partial Data Buffer (000)* 5 Bytes
Current Buffer
Any Buffer (xxx)*
Next Buffer * Status Bits: CMND, MPTY, CF/P
Command Buffer (10x)* 2 Bytes
Min. Data Bytes
PT019(05/02)
30
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Receive Data Buffer The Receive Data Buffer contains 8 bytes of descriptors and j bytes of user's data as shown in Figure 26. The MDFS pin decides the MS byte and LS byte locations (in even and odd addresses). * Descriptors
*
Data Bytes
The first 8 bytes in the Receive Data Buffer are Descriptors that specify Next Buffer Address, Buffer Size, Data Length and Status respectively. See Table 11 for the definition.
Following the Descriptors are received data. The number of data bytes are indicated by Data Length which is written by the PT7A6632 after it receives the last byte of an HDLC frame or the HDLC ABORT code, upon the loss of multiframe alignment error from a non-HDLC signaling channel, or when Receiver Bit-Level Processor detects receive synchronization error caused by RSYN, elastic buffer error or RRED. When it is a partial data buffer, the number of data bytes is indicated by the Buffer Size.
Figure 26. Receive Data Buffer
(Address)
7 msb
(Contents)
0 Next Buffer Address Buffer Size (k) Data Length (j)
(Address)
7
(Contents)
0 lsb Next Buffer Address Buffer Size (k) Data Length (j) Status
i i+1 i+2
Descriptor s
i i+1 i+2
Descriptor s msb
lsb Not used msb lsb Not used msb lsb Not Used by PT7A6632
OVER IVBA ABRT FCER SHER CF/P CMND MPTY
lsb Not used msb lsb Not used msb
OVER IVBA ABRT FCER SHER CF/P CMND MPTY
i+3 i+4 i+5 i+6 i+7
i+3 i+4 i+5 i+6 i+7
-
-
(0)
(0)
Status
Not Used by PT7A6632 First Date Byte Second Date Byte Data
(i+7)+1 (i+7)+2
First Date Byte Second Date Byte Data
(i+7)+1 (i+7)+2
~ ~
(i+7)+j
Last Date Byte
~ ~ ~ ~
Last Location in Buffer
~ ~
(i+7)+j
Last Date Byte
~ ~ ~ ~
Last Location in Buffer
~ ~
(i+7)+k
~ ~
(i+7)+k
a. MDFS = 1
b. MDFS = 0
PT019(05/02)
31
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Table 11. Descriptors in Receive Data Buffer
Na me Next Bu ffer Ad d r ess Bu ffer Size Descr ip t ion 16-bit address word, pointing to next buffer for 6632 to access 12-bit, specifies byte number of memory locations allocated by the CPU for current buffer. The 6632 reads the Buffer Size when writes data into the buffer. 12-bit, the actual number of data bytes received by 6632, written by the 6632 after it receives the last byte of an HDLC frame or the HDLC ABORT code, or upon the loss of multiframe alignment error from a non-HDLC signaling channel. DATA LENGTH is not written if the end of the allocated buffer is reached before the last byte is received (i.e., if data frame length is greater than buffer size). In such a case, the actual data length is equal to the given buffer size. Also, data length may not be written if the ATTN input is asserted, resulting in the deactivation or reactivation of an active channel. DATA LENGTH will not exceed the programmed buffer size. MP T Y E mp t y: 1-bit, if set by the CPU, it means the buffer is empty, i.e., the buffer is ready for storing received data. The PT7A6632 resets this bit when the buffer is not empty. The PT7A6632 will keep polling this bit until it is set. The 6632 resets the bit whenever it updates the status. C omma n d : 1-bit, when set by the CPU, it means the buffer is a Command Buffer. If reset by the CPU, it is a Data Buffer. C omp let e F r a me/Pa r t ia l Da t a Bu ffer : 1-bit, set by the 6632 to show that the data buffer contains the last byte of an HDLC framed data or that synchronization is wrong. It will also be set by the 6632 if the HDLC data or non-HDLC data receiving is aborted by re-synchro condition of ABORT, RRED, RSYNC or TMAX. The 6632 resets this bit when the last byte of an HDLC frame is not in this buffer and 6632 will store more data to the succeeding buffer. This bit will always be reset for non-HDLC mode or signaling mode. Ab or t , F r a m e C h eck E r r or, Sh or t H DL C F r a m e E r r or : These 3 bits are used to report abnormal conditions detected by 6632. ABRT F C E R SH E R = 0 0 0: no errors detected, 0 0 1: short or non-integer HDLC frame error, 0 1 0: CRC error, 0 1 1: CRC error & non-integer error, 1 0 0: HDLC ABORT code received, 1 0 1: non-HDLC multiframe alignment lost, 1 1 0: elastic buffer error & RSYNC error, 1 1 1: RRED alarm. I nva lid Bu ffer Ad d r ess: 1-bit, the 6632 sets the bit if it finds an invalid Next Buffer Address, such as address of 16 zeros or in form of FFFx. In this case, the Rx channel will be in idle state and not receive more data until the channel is re-activated by the CPU. O ver r u n : 1-bit, the 6632 sets this bit when the next empty data buffer is not available for received data before a frame is completed in HDLC data receiving, or when the next empty data buffer is not available for non-HDLC data receiving. No overrun reported for signaling channel. New data will be written in place of earlier received signaling data.
Da t a L en gt h
C MND
C F /P
ABRT FCER SH E R
I VBA
OVE R
PT019(05/02)
32
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Receive Command Buffer The Receive Command Buffer contains 8 bytes of descriptors and 2 bytes of Channel Mode & Rate Definition Data (and maybe Hyperchannel Configuring Bytes) as shown in Figure 27. The MDFS pin decides the MS byte and LS byte locations (in even and odd addresses). Figure 27. Receive Command Buffer
(Address)
7 msb
(Contents)
0 Next Buffer Address
(Address)
7
(Contents)
0 lsb Next Buffer Address
i i+1
Descriptor s
lsb Not used Not used Not used msb
x 0 IVBA 0 0
i i+1 i+2
Descriptor s
msb Not used Not used msb Not used
x IVBA
i+2 i+3 i+4 i+5 i+6 i+7
i+3 i+4
lsb Data Length (j)
lsb Data Length (j) Not used Not used
CMND MPTY
i+5 i+6 i+7
Not Used Not used
0
(1)
Status
CMND MPTY
(1)
Status Mode FILL/MASK Hyperchannel Configuring
(i+7)+1 (i+7)+2 (i+7)+3
INV LOOP SIG HDLC
(i+7)+1 (i+7)+2 (i+7)+3
0
0
0
0
INV LOOP SIG HDLC
Mode FILL/MASK
~ ~
(i+7)+j
E A x Channel Number
~ ~
~ ~
(i+7)+j
E A x Channel Number
~ ~
a. MDFS = 1
b. MDFS = 0
PT019(05/02)
Hyperchannel Configuring
E
A
x
Channel Number
E
A
x
Channel Number
33
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
*
Descriptors
The first 8 bytes in the Receive Command Buffer is Descriptors that specifies Next Buffer Address, Data Length and Status respectively. See Table 12 for the definition. Table 12. Descriptors in Receive Command Buffer
Na me Next Bu ffer Ad d r ess Descr ip t ion 16-bit address word pointing to next buffer for 6632 to access 8-bit, decides the non-flexible-hyperchannel process or flexible hyperchannel process. Data Length = 0, 1 or 2, only normal channel process, Data Length > 2, there is hyperchannel process. In flexible hyperchannel mode, the Data Length is read to decide how many additional channels to be added to/remove from the hyperchannel, and the bytes contain the additional channel numbers are read to add/remove the corresponding channels. E mp t y: 1-b it , the CPU sets it to show that the buffer is empty, i.e., command data is not ready. In this case the 6632 will keep polling this bit until it is reset.The CPU resets this bit when the command data is ready. 6632 sets the bit to inform the CPU that it completes command processing in the buffer. C omma n d : 1-bit, set by the CPU to indicate the buffer is a Command Buffer. I nva lid Bu ffer Ad d r ess: 1-bit, the 6632 sets the bit if it finds an invalid Next Buffer Address, such as address of 16 zeros or in form of FFFx. In this case, the Rx channel will be deactivated until the channel is re-activated by the CPU.
Da t a L en gt h
MP T Y
C MND
I VBA
PT019(05/02)
34
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
*
MODE Byte (Channel Mode)
The Channel Mode Byte is set up by the CPU to specify channel modes of HDLC, non-HDLC signaling, non-HDLC data, loop, non-loop, inversion or non-inversion. The details are shown in Table 13. Table 13. MODE Byte in Receive Command Buffer
MO DE Bits 7 - 4 Bit 3 I NV 0 1 Bit 2 LOOP 0 Non-loop channel Non -H DL C d a t a ch a n n el mod e: used in modes 0 and 1 of DMI application. The 6632 check the availability of the allocated buffer and writes received data to the buffer. The 6632 updates the filled 00 buffer status and asserts INTR, then moves to the next data buffer. The data receiving and writing will continue until it is interrupted by an ATTN signal or no more buffer available. H DL C d a t a ch a n n el m od e: The channel is an HDLC channel or an LAPD message-oriented channel. The 6632 deformats the HDLC data -- 16-bit CRC-CCITT polynomial is used to calculate 01 FCS, and ABORT, Flags and inserted zeros are recognized, no special processing for the header (address and control fields). Non -H DL C sign a lin g ch a n n el mod e: used in DMI or G.732 application to receive the bit-oriented 10 signaling data without HDLC format. The received data are stored into data buffers in the way shown in Table 14. The 6632 detects the multiframe alignment and reports if any error is found. 11 Reserved Non-invertion Loop channel Na me Not used 1 Invertion Descr ip t ion
Bit 1, Bit 0
SI G , H DL C
PT019(05/02)
35
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Table 14. Receive Buffer Data Arrangement for Non-HDLC Bit-Oriented Signaling Channel
(Address) 7 (Contents) 0
i i+1 i+2 i+7 (i+7)+1 (i+7)+2 (i+7)+3

Next Buffer Address = i or j Remaining Descriptors X X X 1 1 1 X X X X X X

X X X
B1 B2 B3
A1 A2 A3
A13 A14 A15
(i+7)+11 (i+7)+12 (i+7)+13 (i+7)+14 (i+7)+15 (i+7)+16 (i+7)+17
X X X X X X X
1 1 1 1 1 1 1
X X X X X X X
X X X X X X X

X X X X X X X
B11 B12 B13 B14 B15 B16 B17
A11 A12 A13 A14 A15 A16 A17
A23 A1 A1 A2 A3 A4 A5
(i+7)+23 (i+7)+24
X 1
1 0
X Ys
X 0
X 1
B23 1
A23 1
A11 A12
a. T1 Mode
(Address)
7
(Contents)
0
i i+1 i+2 i+7 (i+7)+1 (i+7)+2 (i+7)+3
Next Buffer Address = i or j Remaining Descriptors D17 D18 D19 C17 C18 C19 B17 B18 B19 A17 A18 A19
D1 D2 D3
C1 C2 C3
B1 B2 B3
A1 A2 A3
(i+7)+11 (i+7)+12 (i+7)+13 (i+7)+14 (i+7)+15 (i+7)+16
D27 D28 D29 C30 D31 1
C27 C28 C29 C30 C31 1
B27 B28 B29 B30 B31 Ys
A27 A28 A29 A30 A31 1
D11 D12 D13 D14 D15 0
C11 C12 C13 C14 C15 0
B11 B12 B13 B14 B15 0
A11 A12 A13 A14 A15 0
b. CEPT PCM-30 Mode
PT019(05/02)
36
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
*
FILL/MASK Byte (Rate Definition)
The PT7A6632 FILL/MASK byte is used as a masking pattern on the HDLC-formatted (including FLAG, header, data, CRC, and ABORT code) or non-HDLC-formatted data in order to adapt subrates that are multiples of 8kb/s to the 64kb/s rate. The 8-bit sequence is applied to data on a bit by bit basis to remove time-fill (FILL/MASK bit = 0) bits. See an example in Figure 13 in Section "Receive Bit-Level Processor" and Table 9. For bit-oriented signaling mode, the FILL/MASK should be set as 1111 1111, otherwise the PT7A6632 will not override any other FILL/MASK pattern. * Flexible Hyperchannel Configuring Byte (Optional)
Data Length is used to specify flexible hyperchannel. When Data Length = 0, 1 or 2, only non-hyperchannel process. When Data Length > 2, there is hyperchannel process, while the Data Length indicates how many additional channels to be added to the hyperchannel. See Section "Flexible Hyperchannel" in Transmit Command Buffer. Minimum Buffer Size The size of receive data buffer must ensure normal buffer maintenance and buffer transition without losing data. Table 15
R eceive Da t a Bu ffer Min . Bu ffer Size 8 Bytes (Descriptors) + 6 Bytes (Data) R eceive C omma n d Bu ffer 8 Bytes (Descriptors) + 2 Bytes (Command)
The byte follows the FILL/MASK byte if any. It is used to configure flexible hyperchannel. Bits 0 - 4 specify number of a channel to be grouped into or removed from a hyperchannel. Bits 6 and 7 is for hyperchannel enable and add/delete respectively. See Table 10 for details.
PT019(05/02)
37
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Device Operation
Device Initialization
The device is initialized by RESET signal. Upon reset, all the channels are set in the following states: - the operation mode is HDLC, inversion, non-loop, - FILL/MASK byte: 0000 0000, - all channels are inactive, - Flexible hyperchannels are disabled, - no data transferred from the external memory or written to the external memory. The PT7A6632 monitors the TMAX, RSYNC and RRED signals and correspondingly reset the Transmit channel counter and the Receive channel counter to ascertain the framing synchronization.
Before asserting the ATTN, the CPU first allocates memory in the external memory for a Command Buffer containing 8 bytes of descriptors including Next Buffer Starting Address, Data Length, Status, and 2 bytes of Mode and Fill/Mask. And a chain of linked data buffers are set up by the CPU following the command buffer, containing Next Buffer Start Address, Buffer Size, Data Length, Status and Data bytes. Then the CPU set up the Activation Memory containing channel No. to be activated and channel direction, and Channel Starting Address (pointers) in the external memory. Then the CPU sends out the ATTN signal. The PT7A6632 receives the ATTN, starting to access the Activation Memory (asserting SYSACC) for the Channel Number and the channel start address, which will be stored internally in the PT7A6632. PT7A6632 asserts the ATACK after completion the access, CPU negates the ATTN in response to the ATACK, and PT7A6632 negates the ATACK in response to negation of ATTN. The channel initialization is completed. The process is illustrated in Figure 28. This process can be repeated for each channel to be initialized. The PT7A6632 must make three activation memory accesses to complete the channel ATTN processing. The worst case of time delay from ATTN assertion to ATACK assertion is three T1/CEPT PCM-30 channel periods. The earliest is 1.5 channel period.
Channel Initialization
The channels are initialized for preparing data transmission and reception by CPU asserting the ATTN signal.
Figure 28. Channel Initialization
ATTN CPU
" #
External Memory Channel Activation Byte for Channel #m ATACK
PT7A6632
%
!
Channel #m Start Address
$
! CPU prepares data buffer and writes to activation byte for a channel. " CPU asserts ATTN. % PT7A6632 responds to ATTN, reads channel number, Rx/Tx, Active/Inactive in
channel activation byte.
$ PT7A6632 find out the corresponding channel start address and read the start address
of the first buffer allocated for the channel. # PT7A6632 informs task completion by asserting ATACK.
PT019(05/02) Ver:2
38
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Data Transmission and Reception Operation
In transmission, the PT7A6632 reads the first command buffer according to the channel start address, judges status of buffer, fetches the MODE and FILL/MASK information for the channel, then it reads the Next Buffer Start Address in the current buffer. It goes to the next buffer to get Data Length/Buffer Size, and data bytes to send the data out in according to mode specified and update the status if necessary. The PT7A6632
processes channel by channel in this way. See figure 29 for example. In receiving, the PT7A6632 reads the command buffer of a channel to locates the CPU-allocated buffers for received data storage, and stores the processed data into the data buffer and write the Data Length. It updates the Status of the completed buffer if necessary. See figure 30 for example.
Figure 29. Typical Linked Buffer Transmit Sequence
Activation Memory xx00
1: ATTN goes high. 2: PT7A6632 reads activation byte (xx00).
xx80 xx81 xx82 xx83
Tx CH0 Tx CH1
xxBE xxBF
3: PT7A6632 reads the first buffer s starting address (command or data), then sets ATACK, & starts processing that buffer. 4: PT7A6632 resets ATACK after ATTN goes low.
Tx CH31
5: PT7A6632 continues processing command or data buffers as controlled by the status of each.
Next BF Addr. Command Modes FILL/MASK Command Buffer
Next BF Addr. Data Length MPTY=0 CF/P=1 Data Buffer #1
Next BF Addr. Data Length MPTY=0 CF/P=1 Data Buffer #2
Next BF Addr. Buffer Size MPTY=0 CF/P=0 Data Buffer #3
Next BF Addr. Buffer Size MPTY=0 CF/P=0 Data Buffer #4 Data Processing Memory
Next BF Addr. Data Length MPTY=0 CF/P=1 Data Buffer #5
PT019(05/02)
39
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Figure 30. Typical Linked Buffer Receive Activity
Activation Memory xx00
1: ATTN goes high. 2: PT7A6632 accesses Activation Memory (xx00). 3: PT7A6632 reads the first buffer s starting address (command or data), then sets ATACK, & starts processing that buffer. 4: PT7A6632 resets ATACK after ATTN goes low.
xxC0 xxC1 xxC2 xxC3
Rx CH0 Rx CH1
xxFE xxFF
Rx CH31
5: PT7A6632 continues processing command or data buffers as controlled by the status of each.
Next BF Addr. Command Modes FILL/MASK Command Buffer
Next BF Addr. Size Length MPTY=1 Data Buffer #1
Next BF Addr. Size Length MPTY=1 Data Buffer #2
Data Processing Memory
PT019(05/02)
40
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Channel Period for Memory Access
The PT7A6632 accesses the external memory for buffer management and data processing. Normally, the T1/CEPT PCM-30 data flow requires that a byte of data should be supplied for transmission and a byte of data be taken from the receiving source within a single channel period. So the PT7A6632 divides a channel period into 2 halves, the first half is Tx memory access period and the second is Rx memory access period, 4 TCLK periods for each. In the first half of channel period, the PT7A6632 reads command information, descriptors information and transmission data from the external memory for Tx channels, and in second half of channel period, it reads command information, descriptors information from external memory and write the received data to the memory for Rx channels. Typically, the PT7A6632 fetches a data byte from the memory during Tx channel period m for transmission of the data byte over channel m in the next appropriate Tx channel m, and the PT7A6632 takes a data byte from the receiving circuit of channel j and will store the data into the external memory in the next appropriate Rx channel period j. Then the PT7A6632 moves to process the next Tx channel (m+1) and Rx channel (j+1). See Figure 31. In each Tx or Rx memory access period, the PT7A6632 can Figure 31. Channel Period
access external memory for data byte for once, or twice if the descriptor reading is necessary, even more, three times if an ATTN signal asserted by the CPU. At the start of each half-channel period, the PT7A6632 first outputs the channel number CH0 - CH4, and the channel direction Rx/Tx of the current channel. After around half TCLK period, the PT7A6632 asserts DMND to inform the external memory that it will access it after 1 TCLK period from the rising edge of DMND. Then the PT7A6632 asserts the AS strobe, whose falling edge will make the address valid on the address bus. The PT7A6632 sends out READ or WRITE strobe to read data from the memory or write data into the memory during low of the READ or WRITE. After finish memory access (1, 2 or 3 times access as applicable) and sets the DMND low to inform end of memory access of this half-channel period. During the process, if the ATTN is asserted and the PT7A6632 accesses the Activation Memory, it will assert SYSACC and negate it after Activation Memory access completed. Address setup time, address hold time, data setup time and data hold time are specified such that a wide variety of off-theshelf RAM devices may be used. The READ output from the PT7A6632 may be used as an Output Enable (OE) input to the RAM devices. Since the PT7A6632 uses its SYSCLK input to generate various strobes for memory access, the access time requirements are automatically scaled depending on the T1/ CEPT PCM-30 application.
One Channel Period for Memory Access Tx Memory Access Rx Memory Access
8 TCLK Periods
One Channel Period for Memory Access Channel Period Channel No. Served for Tx for Rx for Tx for Rx m j m+1 j+1
PT019(05/02)
41
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Memory Address
Memory Address Extension The output of CH0 - CH4 and Rx/Tx of the PT7A6632 can be used as upper address bits to extend the 16-bit addresses to 22bit addresses. See an example in Figure 32. Or these six bits can be mapped by an external lookup table to another set of n bits (where n is specified by the CPU). Since the channel number and Rx/Tx are output by the PT7A6632 well in advance of the 16-bit address, address translation time is not a concern.
Activation Memory Address The Activation Memory has 256 byte locations as shown in Figure 33. The addresses can be decided by the CPU by setting UAEN and SYSACC output of the PT7A6632. When UAEN = 0, the address output lines A8-A15 of the PT7A6632 is set low, so the address of the Activation Memory is in 00xx(H). When UAEN = 1, PT7A6632 sets its outputs of A8-A15 in high impedance and the CPU can drive the addresses A8-A15.
Figure 32. Address Extension
External Memory
A15-A0
PT7A6632 16
A15-A0
5
A20-A16 CH0 - CH4
1
A21 Rx/Tx
Figure 33. Activation Memory Address
Activation Memory xx00 xx80 xx81 xx82 xx83 xxBE xxBF xxC0 xxC1 xxC2 xxC3 xxFE xxFF Activat Byte Not used Tx CH0 Tx CH1 (Addresses xx80, xx81 and xxB2 through xxBF are not used in T1 modes.)
Tx CH31 Rx CH0 Rx CH1 (Addresses xxC0, xxC1 and xxF2 through xxFF are not used in T1 mode.)
Rx CH31
Upper address lines xx (A8-A15): When UAEN = 0, xx = 00. When UAEN = 1, A8 A15 output of PT7A6632 is set in high impedance, xx are decided by the CPU.
PT019(05/02)
42
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Memory Address Restrictions Activation Memory Address -- The PT7A6632 judges the channel start address for its invalidity immediately after it reads the Activation Memory for the address in response to the ATTN assertion. If the 16-bit address is found invalid, the channel will be deactivated. The channel start address is thought invalid by the PT7A6632 when it is all zero or in form of FFFx. Data/Command Buffer Address -- The PT7A6632 checks next buffer address in each buffer. If found a next buffer address is invalid, the PT7A6632 will set the channel inactive and set the IVBA bit of the current buffer. The channel can be reactivated only when CPU asserts the ATTN signal. The 16-bit next buffer address is thought invalid by the PT7A6632 if it is all zero or in form of FFFx, namely, the address is valid when it is within 0001 to FFEF. The PT7A6632 locates a descriptor byte or a data byte by adding offset to a next buffer address read from last buffer. The maximum address in a buffer is the address of the last byte. As for 16-bit address lines, the addresses are restricted in the range of 216 - 1 (65,535), the last byte address in a buffer should meet the following condition:
Last byte address in a buffer = buffer start address + 7 (decimal) of descriptor bytes + 12-bit data length or buffer size <= 65,535. If the last byte address exceeds the restriction, the PT7A6632 will access memory locations not intended for the channel. All the external memory addresses should be within one 64k byte bank.
Interrupt Indication
At the rising edge of INTR, channel No. and status contents can be shifted into the external FIFO. The INTR is asserted by the PT7A6632 when PT7A6632 updates the status of a buffer. After update, the PT7A6632 negates the INTR and at its rising edge the channel No. and status are guaranteed to be valid on the bus so that external FIFO can take the information, and the actual address of the status byte is also be placed on the bus. The PT7A6632 removes the interruption channel No. and buffer status without waiting for acknowledge from the CPU. See Figure 34. The CPU can take the actual status byte address and it can relocate the completed buffers within the 64k byte bank and also cross-check against its own list of linked buffer addresses. If all the buffer start addresses are divisible exactly by 8, they can be derived from the STATUS byte addresses by setting the three LSB addresses to zero.
Figure 34. Interrupt Indication
INTR
1/2 TCLK Period
6632 Updates Status
Channel No. and Status are valid on the bus
PT019(05/02)
43
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Figure 35. PT7A6632 External Memory Example Interface Waveforms - Single Write Memory Access
SYSCLK DMND AS
A0-A15 WRITE INTR*
D0-D7 Rx/Tx CH0-CH4 * Activated by status write only.
Figure 36. PT7A6632 External Memory Example Interface Waveforms - Double Write Memory Access
SYSCLK DMND AS A0-A15 WRITE INTR* D0-D7
Rx/Tx CH0-CH4 * Activated by status write only.
PT019(05/02)
44
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Figure 37. PT7A6632 External Memory Example Interface Waveforms - Single Read Memory Access
SYSCLK DMND AS
A0-A15 READ
D0-D7 Rx/Tx CH0-CH4
Figure 38. PT7A6632 External Memory Example Interface Waveforms - Read Write Double Memory Access
SYSCLK DMND AS
A0-A15 READ WRITE
D0-D7 INTR* Rx/Tx CH0-CH4 * Activated by status write only.
PT019(05/02)
45
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Figure 39. PT7A6632 External Memory Example Interface Waveforms - Write Read Double Memory Access
SYSCLK DMND AS
A0-A15 READ WRITE
D0-D7 INTR* Rx/Tx CH0-CH4
Figure 40. PT7A6632 External Memory Example Interface Waveforms - Single Activation Read Memory Access
SYSCLK DMND AS
A0-A15 READ
D0-D7 Rx/Tx CH0-CH4 SYSACC
PT019(05/02)
46
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Figure 41. PT7A6632 External Memory Example Interface Waveforms - Single Write Memory Access Plus a Single Activation Read Access
SYSCLK DMND AS A0-A15 WRITE INTR* D0-D7 Rx/Tx CH0-CH4 READ
SYSACC * Activated by status write only.
Figure 42. PT7A6632 External Memory Example Interface Waveforms - Single Write Memory Access Plus a Double Activation Read Access
SYSCLK DMND AS A0-A15 WRITE INTR* D0-D7 Rx/Tx CH0-CH4 READ SYSACC * Activated by status write only. PT019(05/02)
47
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Figure 43. PT7A6632 External Memory Example Interface Waveforms - Write/Read Double Memory Access Plus a Single Activation Read Access
SYSCLK DMND AS A0-A15 READ WRITE D0-D7 INTR* Rx/Tx CH0-CH4 SYSACC * Activated by status write only.
Detailed Specifications
Absolute Maximum Ratings
Storage Temperature ...................................................... -65oC to +150oC Ambient Temperature with Power Applied ...................... -40oC to +85oC Supply Voltage to Ground Potential (Inputs & VCC Only) ...... -0.3 to 7.0V Supply Voltage to Ground Potential (Outputs & D/O Only) .. -0.3 to 7.0V DC Input Voltage .................................................................. -0.3 to 7.0V DC Output Current ...................................................................... 120mA Power Dissipation .............................................................................. 2W Note: Operation at levels greater than those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only; functional operation of the device at these or any other conditions above those indicated in the Operation Condition tables is not implied. Exposure to Absolute Maximum Rating conditions for extended periods may affect reliability.
Recommended Operating Conditions
Table 16. Recommended Operating Conditions
Sym VCC TA
Descr ip t ion Supply Voltage Operating Temperature
Test C on d it ion s Over Recommended Operating Conditions
Min 4.5 -40
Typ 5.0 25
Ma x 5.5 85
Un it s V
o
C
Note: Typical figures are at 25oC and are for design aid only; not production tested.
PT019(05/02)
48
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DC Electrical, Power Supply and Capacitance Characteristics
Table 17. DC Electrical, Power Supply and Capacitance Characteristics
Sym Descr ip t ion Test C on d it ion s VCC = 5V, all clock sources are connected to corresponding pins 500mV noise margin 500mV noise margin IOL = 10mA* IOH = 10mA* VOL = 0.5V VOH = 4.5V 3.5 4 4 0.5 4.5 12 10 10 10 2.4 0.8 1 Min Typ Ma x Un it s
ICC VIH VIL VOL VOH IOL IOH CIN COUT
Supply Current
4
12
mA
Input HIGH Voltage Input LOW Voltage Output LOW Voltage Output HIGH Voltage (CMOS) Output LOW Current Output HIGH Current Input Pin Capacitance Output Pin Capacitance
V V V V mA mA pF pF
Note: Typical figures are at 25oC and are for design aid only; not production tested. * IOL and IOH are obsolute values.
PT019(05/02)
49
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AC Characteristics
(Note: All output AC timing measurements are referenced to the 0.4V for low level and 2.4V for high level, and all input AC timing measurements are referenced to the 0.8V for low level and 2.0V for high level.) Serial Interface * Transmit Frame Synchronization Timing Table 18. Transmit Frame Synchronization Timing
Sym tMS tMH Descr ip t ion TMAX Setup Time TMAX Hold Time Test C on d it ion s Min 50 50 Typ Ma x Un it s ns ns
Figure 44. Diagram of Transmit Frame Synchronization Timing (SIS = 1)
TCLK
tMS
TMAX (From T1/E1 Controller) TSER (From PT7A6632)
tMH
BIT 8, CH24
F BIT
BIT 1, CH1
a. Transmit Serial Output - T1 Mode, TSEREN=1
TCLK
tMS
TMAX (From T1/E1 Controller) TSER (From PT7A6632)
tMH
BIT 8, CH24
F BIT
BIT 1, CH1
b. Transmit Serial Output - T1 Mode, TSEREN=0
TCLK
tMS
TMAX (From T1/E1 Controller) TSER (From PT7A6632) BIT 7, TS31
tMH
BIT 8, TS31
BIT 1, TS0
BIT 2, TS0
c. Transmit Serial Output - CEPT PCM-30 Mode, TSEREN=0 or 1
PT019(05/02)
50
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* Clock Timing Table 19. Clock Timing
Sym tTCD tSCPW tTCPW tSCP tR/tF
Descr ip t ion TCLK Delay SYSCLK Pulse Width TCLK Pulse Width SYSCLK Period Rise Time/Fall Time (SYSCLK)
Test C on d it ion s
Min 0 110 200 240
Typ
Ma x 50
Un it s ns ns ns
122 244 244 1000 5
ns ns
Figure 45. Clock Timing
tSCP tR
SYSCLK
tSCPW tF
tSCPW
tTCD
tTCD
TCLK
tTCPW
PT019(05/02)
51
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* TCLK - RCLK Timing Table 20. TCLK - RCLK Timing
Sym tRCPW tTRCD tR/tF
Descr ip t ion RCLK Pulse Width TCLK, RCLK Difference Rise Time/Fall Time (RCLK, TCLK)
Test C on d it ion s
Min 200
Typ 244
Ma x
Un it s ns
* 10
ns ns
* RCLK is to be centered around TCLK. The summation of RCLK and TCLK periodic differences over any duration of time must never exceed 14 TCLK periods.
Figure 46. TCLK - RCLK Timing
tR
TCLK
tF
tRCPW tTRCD tR tF
RCLK
tRCPW
PT019(05/02)
52
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* PT7A6632 Receive Frame Synchronization Timing Table 29. Receive Frame Synchronization Timing
Sym tRS tRH Descr ip t ion RSYNC Setup Time RSYNC Hold Time Test C on d it ion s Min 50 50 Typ Ma x Un it s ns ns
Figure 47. Diagram of Receive Frame Synchronization Timing (SIS=1)
RCLK
tRS
RSYNC (From T1/E1 Controller) RSER (From PT7A6632)
tRH
F BIT
BIT 1, CH1
a. Receive Serial Output - T1 Mode
RCLK
tRS
RSYNC (From T1/E1 Controller) RSER (From PT7A6632)
tRH
BIT 1, TS0
BIT 2, TS0
b. Receive Serial Output - CEPT PCM-30 Mode
PT019(05/02)
53
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
External Memory Interface * Read Cycle Timing Table 22. Read Cycle Timing
Sym tASD tAD tAF tRD tRDA tRDH Descr ip t ion Address Strobe Delay Address Delay Address Float Delay Read Enable Delay Read Data Access Time Read Data Hold Time 0 Test C on d it ion s Min 10 10 10 10 Typ Ma x 75 78 75 78 * ** Un it s ns ns ns ns ns ns
* Read data access time for shared memory = tSCP -125ns. ** Data drive to data bus float = tSCPW - 65ns.
Figure 48. Read Cycle Timing
SYSCLK AS
tASD tAD
tAF tAF
2.0V 0.8V
2.0V 0.8V
ADDRESS
2.0V 0.8V
tRD
READ
tRD tRDH
2.0V 0.8V
tRDA
D0-D7
2.0V 0.8V
PT019(05/02)
54
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* Write Cycle Timing Table 23. Write Cycle Timing
Sym tASD tAD tAF tWD tWP tID tWDD tWDH
Descr ip t ion Address Strobe Delay Address Delay Address Float Delay Write Delay Write Pulse Width Interrupt Delay Write Data Delay Write Data Hold Time*
Test C on d it ion s
Min 10 10 10 10 80 10 10 10
Typ
Ma x 78 100 90 75
Un it s ns ns ns ns ns ns
117
120 90
ns ns
* Data drive to data bus float time
Figure 49. Write Cycle Timing
SYSCLK AS
tASD tAD
tASD tAF
2.0V 0.8V
2.0V 0.8V
ADDRESS
2.0V 0.8V
tWD
WRITE
tWD
2.0V 0.8V
tID
INTR
tWP
2.0V 0.8V
tWDD
D0-D7
tID
tWDH
2.0V 0.8V
PT019(05/02)
55
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Channel Activation/Deactivation Table 24. Channel Activation/Deactivation Timing
Sym tATNS tATNH tATKR Descr ip t ion ATTN to ATACK Response Time ATTN Hold Time ATACK Reset Delay Test C on d it ion s Min 20 0 2 4 Typ Ma x 48 Un it s SYSCLKs ns SYSCLKs
Figure 50. Channel Activation/DeactivationTiming
SYSCLK
ATTN
ATACK
tATNH tATNS tATNH tATKR
PT019(05/02)
56
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Input Characteristics Table 25. Input Characteristics
Sign a l Na me ATTN RESET D0-D7 TMAX (SIS = 1) TMAX (SIS = 0) RSER (SIS = 1) RSER (SIS = 0) RRED (SIS = 1) RRED (SIS = 0) RSYNC (SIS =1) RSYNC (SIS = 0)
R efer en ce Sign a l SYSCLK TCLK SYSCLK TCLK TCLK RCLK RCLK RCLK RCLK RCLK RCLK
E ffect ive E d ge Rising Rising Rising Falling Rising Falling Rising Falling Rising Falling Rising
Set u p (Min .) 50 60 50 50 50 50 50 50 50 50 50
H old (Min .) 50 60 0 50 50 50 50 50 50 50 50
Un it s ns ns ns ns ns ns ns ns ns ns ns
PT019(05/02)
57
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Output Characteristics Table 26. Output Characteristics
Sign a l Na me DMND AS A0-A15 SYSACC READ WRITE D0-D7 INTR CH0-CH4 Rx/Tx ATACK TSER R efer en ce Sign a l SYSCLK SYSCLK SYSCLK SYSCLK SYSCLK SYSCLK SYSCLK SYSCLK SYSCLK SYSCLK SYSCLK TCLK E ffect ive E d ge Rising Rising/Falling Rising Rising Rising Rising/Falling Falling Falling Rising Rising Rising Falling Dela y (Ma x.) 90 78 100 70 78 120 120 120 70 70 75 65 H old (Min .) 10 10 10 10 10 10 10 10 10 10 10 10 Un it s ns ns ns ns ns ns ns ns ns ns ns ns
PT019(05/02)
58
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mechanical Specifications
Figure 51. 68-Pin PLCC
PT019(05/02)
59
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Ordering Information
Table 27. Ordering Information
Pa r t Nu mb er PT7A6632J
Pa ck a ge 68-Pin PLCC
PT019(05/02)
60
Ver:2
Data Sheet PT7A6632 32-Channel HDLC Controller
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes
Pericom Technology Inc.
Email: support@pti.com.cn China: Asia Pacific: U.S.A.: Web-Site: www.pti.com.cn, www.pti-ic.com
No. 20 Building, 3/F, 481 Guiping Road, Shanghai, 200233, China Tel: (86)-21-6485 0576 Fax: (86)-21-6485 2181 Unit 1517, 15/F, Chevalier Commercial Centre, 8 Wang Hoi Rd, Kowloon Bay, Hongkong Tel: (852)-2243 3660 Fax: (852)- 2243 3667 2380 Bering Drive, San Jose, California 95131, USA Tel: (1)-408-435 0800 Fax: (1)-408-435 1100
Pericom Technology Incorporation reserves the right to make changes to its products or specifications at any time, without notice, in order to improve design or performance and to supply the best possible product. Pericom Technology does not assume any responsibility for use of any circuitry described other than the circuitry embodied in Pericom Technology product. The company makes no representations that circuitry described herein is free from patent infringement or other rights, of Pericom Technology Incorporation.
PT019(05/02)
61
Ver:2


▲Up To Search▲   

 
Price & Availability of PT7A6632

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X